﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultHref.aspx.cs" Inherits="Web.DefaultHref" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <script src="/JS/jquery-1.11.1.min.js" type="text/javascript"></script>
    <link href="css/styleInit.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
        <style type="text/css">
         html {
            background-image: url(images/back.jpg);
            background-size:100%;
            height:100%;
            width:auto;
        }
        /*html, body {
            background-image: url(images/back.jpg);
            height: 100%;
        }*/
        body {
            
            background-position: center center;
            background-repeat: no-repeat;
        }      
            .auto-style1 {
                text-align: center;
            }
    </style>
    <script>
      

        function setCookie(name, value, iDay) {
            var oDate = new Date();
            oDate.setDate(oDate.getDate() + iDay);
            document.cookie = name + '=' + encodeURIComponent(value) + ';expires=' + oDate;

        }

        function login() {
            var rdotype=  $("input[name='rdotype']:checked").val();
            setCookie('code', rdotype, 1);
            return true;
        }

        $(function () {
            function wOpen() {
                var winObj = window.open('DefaultN.aspx?max=1', '<%= ConfigurationManager.AppSettings["OpenWindowsType"] %>'
                , 'left=0,top=0,resizable=1,toolbar=no,menubar=no,scrollbars=no,status=no,location=no');
                //width = screen.availWidth, height = screen.availHeight
                window.opener = null; window.open('', '_self', ''); window.close();
            }

             <%=jqStr %>
        });

       
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="auto-style1" style=" height: 27px;">
           <input type="radio" value="0" name="rdotype" checked="checked"  />自来水
            <input type="radio" value="2" name="rdotype"  />地下水
            <input type="radio" value="1" name="rdotype"  />地表水
&nbsp;<asp:Button ID="btnHref" runat="server" OnClientClick="return login();" OnClick="btnHref_Click" Text="确定" />

    </div>
    </form>
</body>
</html>
